import http from "../utils/request";
// import request from "@/utils/request";
const api_name = "/api/file";
export const fileSetApi = {
  getFilePage: async (data) => {
    return await http.post(`${api_name}/list`, data);
  },
  handleDeleteFile: async (data) => {
    return await http.post(`${api_name}/delete?fileKey=${data}`);
  },
  getFileUrl: async (fileKey) => {
    return await http.get(`${api_name}/getFileUrl?fileKey=${fileKey}`);
  },
};
